package com.jy.api.signUpReq.admin;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Size;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by lihu on 2017/11/11.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProductSequenceSignUpReq {


    @Size(min = 1, message = "最少参数为1")
    private List<Product> products = new ArrayList<>();

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Product {

        private String productTypeId;

        private int sequence;
    }
}
